import request from '@/utils/request'

// 查询机电设施应急检修列表
export function listJidiansheshiyingjijianxiu(query) {
  return request({
    url: '/biz/jidiansheshiyingjijianxiu/list',
    method: 'get',
    params: query
  })
}

// 查询机电设施应急检修详细
export function getJidiansheshiyingjijianxiu(id) {
  return request({
    url: '/biz/jidiansheshiyingjijianxiu/' + id,
    method: 'get'
  })
}

// 新增机电设施应急检修
export function addJidiansheshiyingjijianxiu(data) {
  return request({
    url: '/biz/jidiansheshiyingjijianxiu',
    method: 'post',
    data: data
  })
}

// 修改机电设施应急检修
export function updateJidiansheshiyingjijianxiu(data) {
  return request({
    url: '/biz/jidiansheshiyingjijianxiu',
    method: 'put',
    data: data
  })
}

// 删除机电设施应急检修
export function delJidiansheshiyingjijianxiu(id) {
  return request({
    url: '/biz/jidiansheshiyingjijianxiu/' + id,
    method: 'delete'
  })
}

// 导出机电设施应急检修
export function exportJidiansheshiyingjijianxiu(query) {
  return request({
    url: '/biz/jidiansheshiyingjijianxiu/export',
    method: 'get',
    params: query
  })
}